package cn.swing.main.srv.cv;

import java.lang.reflect.Field;
import org.opencv.core.Core;

public abstract class BaseOpencv {

    static {
        try {
            System.setProperty("java.library.path", "D:\\opencv\\build\\java\\x64");
            Field fieldSysPath = ClassLoader.class.getDeclaredField("sys_paths");
            fieldSysPath.setAccessible(true);
            fieldSysPath.set(null, null);
        } catch (Exception e) {
            e.printStackTrace();
        }
        System.loadLibrary(Core.NATIVE_LIBRARY_NAME);
    }

}
